package Gacha;

import java.awt.FlowLayout;
import java.awt.Image;
import java.io.File;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class videoplay extends JFrame implements Runnable {
	ImageIcon ppt;
	JLabel jl;
	videoplay(int rolls, String name) {
		ppt = new ImageIcon("src" + File.separator + "img" + File.separator + name + rolls + ".gif");
		setIconImage(Gacha.icon);
	}
	public void run() {
		jl = new JLabel();
		Image image = ppt.getImage();
		image = image.getScaledInstance(1440, 768, Image.SCALE_DEFAULT);
		ppt.setImage(image);
		jl.setIcon(ppt);
		jl.setHorizontalAlignment(JLabel.CENTER);
		getContentPane().setLayout(new FlowLayout());
		getContentPane().add(jl);
		setExtendedState(JFrame.MAXIMIZED_BOTH);
		//setSize(1600, 900);
		//setLocation(0, 0);
		setAlwaysOnTop(true);
		setVisible(true);
	}
}
